/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.fieo.sgee.logic;

import br.com.fieo.sgee.dao.DaoFactory;
import br.com.fieo.sgee.model.TypeOfPoint;
import java.util.List;

/**
 *
 * @author rafael
 */
public class TypeOfPointsLogic {


    /** Instancia da classe atual */
    private static TypeOfPointsLogic _instance = null;
    /** instancia da classe DaoFactory */
    private final DaoFactory factory;

    public static TypeOfPointsLogic getInstance(){
        if (_instance == null){
            _instance = new TypeOfPointsLogic();
        }
        return _instance;
    }

    private TypeOfPointsLogic() {
        factory = new DaoFactory();
    }

    public void save(TypeOfPoint typeOfPoint){
        factory.getTypeOfPointDao().save(typeOfPoint);
    }

    public List listAll(){
        return factory.getTypeOfPointDao().listAll();
    }

}
